-----------------------------------
-- Area: Promyvion-Vahzl
-- NPC: ??? (qm1)
-- @zone 22
-- @pos 302.756 -2.244 -179.892
-- Notes: Spawn Deviator Floor 3
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------

require("scripts/zones/Promyvion-Vahzl/TextIDs");

-----------------------------------
-- onTrade Action
-----------------------------------

function onTrade(player,npc,trade)

	if(trade:hasItemQty(1756,1) and trade:getItemCount() == 1) then -- Cerebrator Remnant
		player:tradeComplete();
		player:messageSpecial(ON_NM_SPAWN);
		SpawnMob(16867455,180):updateEnmity(player); -- Spawn Deviator
	end

end;

-----------------------------------
-- onTrigger Action
-----------------------------------

function onTrigger(player,npc)
	player:messageSpecial(POPPED_NM_OFFSET);
end;